// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:30


// Source File Name:   ui.java

package com.zelix;

import java.io.PrintStream;


//            si, nh, vh, gm, 
//            zu

public abstract class ui extends si
    implements gm
{

    protected int h;
    public static boolean i;
    private static String z[];

    public ui(int j)
    {
        super(j);
    }

    protected abstract void a(nh nh1, int j, int k);

    public abstract String a();

    public int d()
    {
        return h;
    }

    public final void b(nh nh1, int j, int k)
    {
        StringBuffer stringbuffer = new StringBuffer();
        int l = nh1.x() - j;
        if(l > 0)
        {
            if(stringbuffer.length() > 0)
                stringbuffer.append(z[3]);
            stringbuffer.append(l + (l <= 1 ? z[6] : z[0]));
        }
        int i1 = nh1.h() - k;
        if(i1 > 0)
        {
            if(stringbuffer.length() > 0)
                stringbuffer.append(z[3]);
            stringbuffer.append(i1 + (i1 <= 1 ? z[5] : z[2]));
        }
        if(stringbuffer.length() > 0)
            System.err.println(zu.a(vh.e().length() + 1, ' ') + stringbuffer.toString() + z[1] + a() + z[4]);
    }

    public void b(int j)
    {
        h = j;
    }
         private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x35;
                    break;
                case 1:
                    key = 13;
                    break;
                case 2:
                    key = 12;
                    break;
                case 3:
                    key = 49;
                    break;
                default:
                    key = 86;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }
    static 
    {
        String as[];
        as = new String[7];
        as[0] = "\025zmC8\\ckB";
        as[1] = "\025iiE3VyiUv\\c,A7G~i\0219S-.";
        as[2] = "\025h~C9G~";
        as[3] = "\025lbUv";
        as[4] = "\027-\177E7AhaT8A";
        as[5] = "\025h~C9G";
        as[6] = "\025zmC8\\ck";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;

    }
}